FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm ci --omit=dev || npm i --omit=dev

COPY . .

EXPOSE 3000

ENV NODE_ENV=production \
    DB_HOST=host.docker.internal \
    DB_USER=root \
    DB_PASSWORD=12345678 \
    DB_NAME=dsj_study

CMD ["node", "app.js"]


